package com.bolong.gmgc.bean.record;

import java.io.Serializable;
import java.util.Date;

public class CarRecord implements Serializable {
    /**
     * 记录id
     *
     * @mbg.generated
     */
    private String id;

    /**
     * 车牌号
     *
     * @mbg.generated
     */
    private String carNumber;

    /**
     * 驶入时间
     *
     * @mbg.generated
     */
    private Date recordIntime;

    /**
     * 行驶出时间
     *
     * @mbg.generated
     */
    private Date recordOuttime;

    /**
     * 停车时长 单位分钟
     *
     * @mbg.generated
     */
    private Integer recordTimelength;

    /**
     * 订单状态0未缴费1已缴费
     *
     * @mbg.generated
     */
    private Integer recordType;

    /**
     * 实收金额/元
     *
     * @mbg.generated
     */
    private Double recordPaymoney;

    /**
     * 支付方式 0.免费 1.支付宝2.微信3.刷卡4账户余额5.现金 6.月卡支付 7.混合支付 8.月卡supp支付
     *
     * @mbg.generated
     */
    private Integer redordPaytype;

    /**
     * 停车场id
     *
     * @mbg.generated
     */
    private String parkId;

    /**
     * 车辆记录状态0历史车辆  1在线车辆
     *
     * @mbg.generated
     */
    private Integer recordStatus;

    /**
     * 是否自动付费0否 1是
     *
     * @mbg.generated
     */
    private Boolean autoPay;

    /**
     * 是否锁车 0否 1是
     *
     * @mbg.generated
     */
    private Boolean isLocked;

    /**
     * 入场方式 0自动 1手动
     *
     * @mbg.generated
     */
    private Integer admissionType;

    /**
     * 出场方式 0自动 1手动
     *
     * @mbg.generated
     */
    private Integer apearanceType;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remarks;

    /**
     * 订单id
     *
     * @mbg.generated
     */
    private String orderId;

    /**
     * 是否离线数据1.true0.false
     *
     * @mbg.generated
     */
    private Boolean isOffline;

    /**
     * 发票id
     *
     * @mbg.generated
     */
    private String invoiceId;

    /**
     * 岗亭id
     *
     * @mbg.generated
     */
    private String watchhouseId;

    /**
     * 进场照片
     *
     * @mbg.generated
     */
    private String recordInpic;

    /**
     * 出场照片
     *
     * @mbg.generated
     */
    private String recordOutpic;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public Date getRecordIntime() {
        return recordIntime;
    }

    public void setRecordIntime(Date recordIntime) {
        this.recordIntime = recordIntime;
    }

    public Date getRecordOuttime() {
        return recordOuttime;
    }

    public void setRecordOuttime(Date recordOuttime) {
        this.recordOuttime = recordOuttime;
    }

    public Integer getRecordTimelength() {
        return recordTimelength;
    }

    public void setRecordTimelength(Integer recordTimelength) {
        this.recordTimelength = recordTimelength;
    }

    public Integer getRecordType() {
        return recordType;
    }

    public void setRecordType(Integer recordType) {
        this.recordType = recordType;
    }

    public Double getRecordPaymoney() {
        return recordPaymoney;
    }

    public void setRecordPaymoney(Double recordPaymoney) {
        this.recordPaymoney = recordPaymoney;
    }

    public Integer getRedordPaytype() {
        return redordPaytype;
    }

    public void setRedordPaytype(Integer redordPaytype) {
        this.redordPaytype = redordPaytype;
    }

    public String getParkId() {
        return parkId;
    }

    public void setParkId(String parkId) {
        this.parkId = parkId;
    }

    public Integer getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(Integer recordStatus) {
        this.recordStatus = recordStatus;
    }

    public Boolean getAutoPay() {
        return autoPay;
    }

    public void setAutoPay(Boolean autoPay) {
        this.autoPay = autoPay;
    }

    public Boolean getIsLocked() {
        return isLocked;
    }

    public void setIsLocked(Boolean isLocked) {
        this.isLocked = isLocked;
    }

    public Integer getAdmissionType() {
        return admissionType;
    }

    public void setAdmissionType(Integer admissionType) {
        this.admissionType = admissionType;
    }

    public Integer getApearanceType() {
        return apearanceType;
    }

    public void setApearanceType(Integer apearanceType) {
        this.apearanceType = apearanceType;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Boolean getIsOffline() {
        return isOffline;
    }

    public void setIsOffline(Boolean isOffline) {
        this.isOffline = isOffline;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public String getWatchhouseId() {
        return watchhouseId;
    }

    public void setWatchhouseId(String watchhouseId) {
        this.watchhouseId = watchhouseId;
    }

    public String getRecordInpic() {
        return recordInpic;
    }

    public void setRecordInpic(String recordInpic) {
        this.recordInpic = recordInpic;
    }

    public String getRecordOutpic() {
        return recordOutpic;
    }

    public void setRecordOutpic(String recordOutpic) {
        this.recordOutpic = recordOutpic;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", carNumber=").append(carNumber);
        sb.append(", recordIntime=").append(recordIntime);
        sb.append(", recordOuttime=").append(recordOuttime);
        sb.append(", recordTimelength=").append(recordTimelength);
        sb.append(", recordType=").append(recordType);
        sb.append(", recordPaymoney=").append(recordPaymoney);
        sb.append(", redordPaytype=").append(redordPaytype);
        sb.append(", parkId=").append(parkId);
        sb.append(", recordStatus=").append(recordStatus);
        sb.append(", autoPay=").append(autoPay);
        sb.append(", isLocked=").append(isLocked);
        sb.append(", admissionType=").append(admissionType);
        sb.append(", apearanceType=").append(apearanceType);
        sb.append(", remarks=").append(remarks);
        sb.append(", orderId=").append(orderId);
        sb.append(", isOffline=").append(isOffline);
        sb.append(", invoiceId=").append(invoiceId);
        sb.append(", watchhouseId=").append(watchhouseId);
        sb.append(", recordInpic=").append(recordInpic);
        sb.append(", recordOutpic=").append(recordOutpic);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CarRecord other = (CarRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCarNumber() == null ? other.getCarNumber() == null : this.getCarNumber().equals(other.getCarNumber()))
            && (this.getRecordIntime() == null ? other.getRecordIntime() == null : this.getRecordIntime().equals(other.getRecordIntime()))
            && (this.getRecordOuttime() == null ? other.getRecordOuttime() == null : this.getRecordOuttime().equals(other.getRecordOuttime()))
            && (this.getRecordTimelength() == null ? other.getRecordTimelength() == null : this.getRecordTimelength().equals(other.getRecordTimelength()))
            && (this.getRecordType() == null ? other.getRecordType() == null : this.getRecordType().equals(other.getRecordType()))
            && (this.getRecordPaymoney() == null ? other.getRecordPaymoney() == null : this.getRecordPaymoney().equals(other.getRecordPaymoney()))
            && (this.getRedordPaytype() == null ? other.getRedordPaytype() == null : this.getRedordPaytype().equals(other.getRedordPaytype()))
            && (this.getParkId() == null ? other.getParkId() == null : this.getParkId().equals(other.getParkId()))
            && (this.getRecordStatus() == null ? other.getRecordStatus() == null : this.getRecordStatus().equals(other.getRecordStatus()))
            && (this.getAutoPay() == null ? other.getAutoPay() == null : this.getAutoPay().equals(other.getAutoPay()))
            && (this.getIsLocked() == null ? other.getIsLocked() == null : this.getIsLocked().equals(other.getIsLocked()))
            && (this.getAdmissionType() == null ? other.getAdmissionType() == null : this.getAdmissionType().equals(other.getAdmissionType()))
            && (this.getApearanceType() == null ? other.getApearanceType() == null : this.getApearanceType().equals(other.getApearanceType()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getIsOffline() == null ? other.getIsOffline() == null : this.getIsOffline().equals(other.getIsOffline()))
            && (this.getInvoiceId() == null ? other.getInvoiceId() == null : this.getInvoiceId().equals(other.getInvoiceId()))
            && (this.getWatchhouseId() == null ? other.getWatchhouseId() == null : this.getWatchhouseId().equals(other.getWatchhouseId()))
            && (this.getRecordInpic() == null ? other.getRecordInpic() == null : this.getRecordInpic().equals(other.getRecordInpic()))
            && (this.getRecordOutpic() == null ? other.getRecordOutpic() == null : this.getRecordOutpic().equals(other.getRecordOutpic()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCarNumber() == null) ? 0 : getCarNumber().hashCode());
        result = prime * result + ((getRecordIntime() == null) ? 0 : getRecordIntime().hashCode());
        result = prime * result + ((getRecordOuttime() == null) ? 0 : getRecordOuttime().hashCode());
        result = prime * result + ((getRecordTimelength() == null) ? 0 : getRecordTimelength().hashCode());
        result = prime * result + ((getRecordType() == null) ? 0 : getRecordType().hashCode());
        result = prime * result + ((getRecordPaymoney() == null) ? 0 : getRecordPaymoney().hashCode());
        result = prime * result + ((getRedordPaytype() == null) ? 0 : getRedordPaytype().hashCode());
        result = prime * result + ((getParkId() == null) ? 0 : getParkId().hashCode());
        result = prime * result + ((getRecordStatus() == null) ? 0 : getRecordStatus().hashCode());
        result = prime * result + ((getAutoPay() == null) ? 0 : getAutoPay().hashCode());
        result = prime * result + ((getIsLocked() == null) ? 0 : getIsLocked().hashCode());
        result = prime * result + ((getAdmissionType() == null) ? 0 : getAdmissionType().hashCode());
        result = prime * result + ((getApearanceType() == null) ? 0 : getApearanceType().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getIsOffline() == null) ? 0 : getIsOffline().hashCode());
        result = prime * result + ((getInvoiceId() == null) ? 0 : getInvoiceId().hashCode());
        result = prime * result + ((getWatchhouseId() == null) ? 0 : getWatchhouseId().hashCode());
        result = prime * result + ((getRecordInpic() == null) ? 0 : getRecordInpic().hashCode());
        result = prime * result + ((getRecordOutpic() == null) ? 0 : getRecordOutpic().hashCode());
        return result;
    }
}